
@interface SavingsCalculator : NSObject

@property (nonatomic, readonly) NSInteger calculationHours;
@property (nonatomic, readonly) CGFloat energyPriceKWh;

@property (nonatomic, readonly) NSDictionary *lampItem;
@property (nonatomic, readonly) CGFloat effect;
@property (nonatomic, readonly) NSInteger lumen;

// Calcuated values
@property (nonatomic, readonly) CGFloat lampsNeeded;
@property (nonatomic, readonly) CGFloat lampsPurchaseCost;
@property (nonatomic, readonly) CGFloat usedEnergy;
@property (nonatomic, readonly) CGFloat usedEnergyNormalized;
@property (nonatomic, readonly) CGFloat usedEnergyCost;

// Substitutes
@property (nonatomic, readonly) NSArray *substitutes;
@property (nonatomic, readonly) NSMutableArray *substPrice;
@property (nonatomic, readonly) NSMutableArray *substSaving;

-(id)initWithLampItem:(NSDictionary *)lampItem effect:(float)effect;
-(void)setPurchasePrice:(float)price forSubstituteAtIndex:(NSInteger)index;
-(float)savingForSubstituteAtIndex:(NSInteger)index;
-(float)purchasePriceForSubstituteAtIndex:(NSInteger)index;
-(float)savingForSubstituteAtIndex:(NSInteger)index andPurchasePrice:(float)price;
@end
